package org.cangkuguanli.luoyuhang.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.cangkuguanli.luoyuhang.bean.Gongyingshang;
import org.cangkuguanli.luoyuhang.bean.YuanGong;

@Mapper
public interface YuangongMapper {
    // 核对账号密码
    @Select("select * from `yuangong` where yuangong_zhanghao=#{yuangong_zhanghao} and `yuangong_mima`=#{yuangong_mima})")
    YuanGong login(YuanGong user);

    @Insert("insert into `yuangong` values(null,#{yuangong_mingchen},#{yuangong_xingbie},#{yuangong_shengri},#{yuangong_shoujihao},#{yuangong_zhiwei},#{yuangong_zhanghao},(#{yuangong_mima}))")
    int add(YuanGong user);
}
